package com.hades.xq.prototype.deep;

import java.util.ArrayList;
import java.util.List;

public class Person3 implements Cloneable {

    private ArrayList<String> valueList = new ArrayList<>();

    public void setValue() {
        valueList.add("1");
    }

    public List<String> getValue() {
        return valueList;
    }

    @Override
    public Person3 clone() throws CloneNotSupportedException {
        Person3 person = (Person3) super.clone();
        person.valueList = (ArrayList<String>) this.valueList.clone();
        return person;
    }
}